class same{
    public String type;
    public String power;
    public String specific;

    public same() {
        type = "pp";
        power = "oo";
        specific = "ii";
        System.out.println("same "+type+" "+power+" "+specific+" ");
    }

    public void show() {
        System.out.println(type+" "+power+" "+specific+" ");
    }
}
class keyboard extends same{
    public String h;
    public String hh;
    public String hhh;

    public void show() {
        System.out.println(type + "h");
    }
}

class mouses extends same {
    public String a;
    public String aa;
    public String aaa;
    public String type="dd";

    public mouses(){
        super.type = "qq";
        power = "ee";
        specific = "rr";
    }

    public void show() {
        System.out.println("mouse "+type + " a");
        super.show();
    }
}
public class first {
    public static void main(String[] args) {
        mouses h = new mouses();
        h.show();
    }
}
